package com.study.config;

import com.study.entity.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


public class MyConfiguration2 {

    @Bean("user2")
    public User user() {
        User user = new User("MyConfiguration2", 12);
        return user;
    }
}

